//=============================================================================
// Scene_Map
//=============================================================================

if (Yanfly.Param.ShowEvTrans) {

    Scene_Map.prototype.startEncounterEffect = function () {
        this._encounterEffectDuration = this.encounterEffectSpeed();
    };

}; // Yanfly.Param.ShowEvTrans

Yanfly.Core.Scene_Map_snapForBattleBackground =
    Scene_Map.prototype.snapForBattleBackground;
Scene_Map.prototype.snapForBattleBackground = function () {
    if (!Yanfly.Param.ShowEvSnap) this._spriteset.hideCharacters();
    Yanfly.Core.Scene_Map_snapForBattleBackground.call(this);
    if (Yanfly.Param.ShowEvTrans) this._spriteset.showCharacters();
};